package com.bluefish.bltuan.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bluefish.bltuan.dao.EmailTemplateDao;
import com.bluefish.bltuan.module.mail.EmailPurpose;
import com.bluefish.bltuan.module.mail.EmailTemplate;

@Repository
public class EmailTemplateDaoImpl extends AbstractDaoImpl<EmailTemplate, Integer>
	implements EmailTemplateDao{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6123384943091572998L;
	private static final String EMAIL_PURPOSE = "purpose";

	public List<EmailTemplate> listByPurpose(EmailPurpose purpose){
		return listByProperty(EMAIL_PURPOSE, purpose);
	}
}
